package Model;

import Controller.IAction;
import java.io.Serializable;
import java.util.Date;

/**
 *
 * @author pieterc
 */
public class StatusMessage implements Serializable{
    private String identification; //eg: 123456789@identi.ca
    protected String text;
    protected IAction[] actions;
    protected Date time;
    protected User user;


    public StatusMessage() {
        text = "";
        identification = "";
    }

    public StatusMessage(String text, IAction[] actions, Date time, User user){
        this.text = text;
        this.actions = actions;
        this.time = time;
        this.user = user;
    }
    public  IAction[] getActions(){
        return actions;
    }
    public  String getText(){
        return text;
    }
    public  User getUser(){
        return user;
    }
    public  Date getTime(){
        return time;
    }

    public void setActions(IAction[] actions) {
        this.actions = actions;
    }

    public void setText(String text) {
        this.text = text;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public String getIdentification() {
        return identification;
    }

    public void setIdentification(String identification) {
        this.identification = identification;
    }

    @Override
    public String toString(){
        return text;
    }


}
